package com.kmu.lwl.entiy;

import java.util.Objects;

public class Score {
    private int num;
    private String studentId;
    private String courseId;
    private Integer score;
    private Integer credit;

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public String getStudentId() {
        return studentId;
    }

    public void setStudentId(String studentId) {
        this.studentId = studentId;
    }

    public String getCourseId() {
        return courseId;
    }

    public void setCourseId(String courseId) {
        this.courseId = courseId;
    }

    public Integer getScore() {
        return score;
    }

    public void setScore(Integer score) {
        this.score = score;
    }

    public Integer getCredit() {
        return credit;
    }

    public void setCredit(Integer credit) {
        this.credit = credit;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Score score1 = (Score) o;
        return num == score1.num &&
                Objects.equals(studentId, score1.studentId) &&
                Objects.equals(courseId, score1.courseId) &&
                Objects.equals(score, score1.score) &&
                Objects.equals(credit, score1.credit);
    }

    @Override
    public int hashCode() {
        return Objects.hash(num, studentId, courseId, score, credit);
    }
}
